<div>
    <mu-container >
        <mu-appbar style="width: 100%; " class="mu-appbar-header" color="primary">
            我的任务
            <mu-chip class="demo-chip"  color="rgba(0,0,0,0)">
                {{startDate}}&nbsp;&nbsp;-&nbsp;&nbsp;{{endDate}}
            </mu-chip>

            <mu-checkbox flat slot="right" label = "周" v-model="normal.timeDiff" color="success"></mu-checkbox>
            <!--<mu-checkbox v-if="normal.timeDiff" flat slot="right" label = "日" v-model="normal.timeDiff" color="success"></mu-checkbox>-->
            <mu-button flat slot="right"  v-if="normal.timeDiff" @click="before">前-周</mu-button>
            <mu-button flat slot="right" v-if="!normal.timeDiff"  @click="before">前-天</mu-button>
            <mu-button flat slot="right" v-if="!normal.timeDiff" @click="today">今天</mu-button>
            <mu-button flat slot="right" v-if="normal.timeDiff"  @click="today">本周</mu-button>
            <mu-button flat slot="right" v-if="!normal.timeDiff" @click="after">后一天</mu-button>
            <mu-button flat slot="right"  v-if="normal.timeDiff"  @click="after">后一周</mu-button>

        </mu-appbar>
        <div style="margin-top: 76px"></div>
    </mu-container>
    <mu-container  v-for="schedule,index in tableData " style="margin-top:18px;margin-bottom:20px">
        <mu-card style="width: 100%;  margin: 0 auto;" >
            <div class=" mu-card-title-container" style="padding-left: 32px; padding-bottom: 0px;">
                <div class="mu-card-title">{{schedule.groundServiceScheduling.groundServiceItemPo.itemName}}<mu-badge :content="' 状态：'+schedule.groundServiceScheduling.status"></mu-badge></div>
                <div class="mu-card-sub-title">开始时间：{{schedule.serviceTime}}</div>
            </div>
            <mu-card-text style="padding-bottom: 0px " >
                <template>航班号：{{schedule.flightPlane.flightInfo.flightNum}}</template>
            </mu-card-text>

            <mu-card-text style="padding-bottom: 0px ">
                <template>行程: &nbsp;&nbsp;&nbsp; {{schedule.flightPlane.originating}} - {{schedule.flightPlane.destination}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    起落时间：&nbsp;&nbsp;&nbsp;{{schedule.flightPlane.takeOffTime}} - {{schedule.flightPlane.arriveTime}}</template>
            </mu-card-text>
            <mu-card-text >
                <template >
                    <!--<span >负责人:&nbsp;&nbsp;&nbsp;&nbsp;{{schedule.mainUser.userCnName}}</span>-->
                    <span>&nbsp;&nbsp;&nbsp;服务人员：&nbsp;&nbsp;&nbsp;<span v-for="assist in schedule.groundServiceScheduling.selectedFwUser">{{assist.userCnName}}&nbsp;&nbsp;&nbsp;&nbsp;</span> </span>
                </template>
            </mu-card-text>
            <mu-card-actions  >
                <mu-button flat v-for="node in nodes" :disabled="nodeCompleted(node,schedule.flightPlane.courseNodePos)" color="primary"  @click="schedulingReceive(schedule,node)">{{node.nodeName}}完成</mu-button>
            </mu-card-actions>
        </mu-card>
        <mu-dialog :title="dialogTitle" width="600" max-width="80%" :esc-press-close="false" :overlay-close="false" :open.sync="openAlert">
                    {{dialogTitle}}
            <mu-button slot="actions" flat color="primary" @click="dialogConfirm">确定</mu-button>
            <mu-button slot="actions" flat color="primary" @click="openAlert=false">取消</mu-button>
        </mu-dialog>
    </mu-container>
    <mu-snackbar position="top-end" :open.sync="normal.open" color="success">
        {{normal.message}}
        <!--<mu-button flat slot="action" color="secondary" @click="normal.open = false">Close</mu-button>-->
    </mu-snackbar>
</div>